<?php echo $this->form('profile',array('method'=>"post","action"=>"edit"));?>
<div id="commonprofile">
<span>Nom: </span><span class="label show"><?php echo $this->escape($this->profile->getFirstname());?></span><span class="edit hide"><?php echo $this->formText("firstname",$this->profile->getFirstname());?></span><br>
<span>Prenom: </span><span class="label show"><?php echo $this->escape($this->profile->getLastname());?></span><span class="edit hide"><?php echo $this->formText("lastname",$this->profile->getLastname());?></span><br>
<span>Email: </span><span><?php echo $this->escape($this->profile->getEmail());?></span><br>
<div class="edit hide"><?php echo $this->formSubmit('changeCommonprofile','change');?></div>
<div class="label"><?php echo $this->formButton('EnablechangeCommonprofile','Editer');?></div>
</div>
<hr>
<div id="commonprofilepostal">
<span>Code postal: </span><span class="label show"><?php echo $this->escape($this->profile->getZipcode());?></span><span class="edit hide"><?php echo $this->formText("zipcode",$this->profile->getZipcode());?></span><br>
<span>Ville: </span><span class="label show"><?php echo $this->escape($this->profile->getCity());?></span><span class="edit hide"><?php echo $this->formText("city",$this->profile->getCity());?></span><br>
<div class="edit hide"><?php echo $this->formSubmit('changePostalInfo','change');?></div>
<div class="label"><?php echo $this->formButton('EnablechangePostalInfo','Editer',array("class"=>"edit"));?></div>
</div>
</form>
<?php echo $this->headScript()->appendFile('/js/profile.js','text/javascript');?>